<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
    <meta name="format-detection"content="telephone=no, email=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" /><!-- 删除苹果默认的工具栏和菜单栏 -->
    <meta name="apple-mobile-web-app-status-bar-style" content="black" /><!-- 设置苹果工具栏颜色 -->
    <meta name="renderer" content="ie-comp">
    <meta name="renderer" content="ie-stand">
    <meta name="renderer" content="webkit"> 
    <meta name="keywords" content="耀盛中国,耀盛智投,理财产品,智选财富,耀盛智投官网"/>
    <meta name="description" content="耀盛智投为耀盛中国旗下理财产品智选平台。专注于为大众富裕阶层、精英个人、中产阶级家庭、合规机构等提供定制化资产配置咨询推荐服务，帮助客户实现财富的增值。" />
    <title>保单详情</title>
    <script src="../../lib/js/ftSize.js"></script>
    <link rel="stylesheet" href="../../lib/css/_base.css">
    <link rel="stylesheet" type="text/css" href="../../lib/css/myinsurance.css">
</head>
<body>
        <h1 class="rem90R"><img src="../../lib/images/left.png" class="leftImg" onClick="prevAttectation()" style="z-index:99999;">保单明细</h1>
    <section class="product-main guarantee_details" id="policyDetail">
       <!--  <h2>尊享e生旗舰版</h2>
        <p class="appellative"><i>众安保险</i>|保单号：<span>IH23852094323423</span></p>
        <img src="../../lib/images/bd-tiao.png" class="bd-img">
        <ul class="bd_name">
            <li><span class="color1">保费</span><em class="color2">200.00 元</em></li>
            <li><span class="color1">保额</span><em class="color2">3006000.00 元</em></li>
            <li><span>投保日期</span><em>2018-05-09 23:31:34</em></li>
            <li><span>承保日期</span><em>2018-05-10</em></li>
            <li><span>保单生效日期</span><em>2018-05-10</em></li>
            <li><span>保单终止日期</span><em>2019-05-09</em></li>
            <li><span>缴费期</span><em>1年</em></li>
            <li><span>保障期</span><em>1年</em></li>
        </ul>
        <p class="bd_ren">投保人信息</p>
        <ul class="bd_name">
            <li><span>姓名</span><em>张三|男</em></li>
            <li><span>证件类型</span><em>身份证</em></li>
            <li><span>证件号码</span><em>130***************</em></li>
        </ul>
        <p class="bd_ren">被投保人信息</p>
        <ul class="bd_name">
            <li><span>姓名</span><em>李四|女</em></li>
            <li><span>证件类型</span><em>身份证</em></li>
            <li><span>证件号码</span><em>130***************</em></li>
        </ul> -->
    </section>
    <div class="bd_remark">备注：登录保险公司官方网站，可以查询更多保单详情</div>
<script src="../../lib/js/jquery.min.js"></script>    
<script src="../../lib/js/public-header.js"></script> 
<script>

    function insurDetailJson(ids) {
        let wpuserToken =  window.sessionStorage.getItem('wpuserToken');
        var json = {
            "faceCode":"insurance/insureDetail",
            "token":wpuserToken,    
            "clientInfo":"W,100,IE8",  
            "requestTime": formatDateTime(startTime),
            "body":{
                "id":ids
            }
        }
        return json;
    }
    policyDetail(  window.sessionStorage.getItem('wppolicyId'))
    function policyDetail(ids){
        $.ajax({  
            type: "POST",
            url: httpServer+"insurance/insureDetail",
            headers:{
                'Access-Control-Allow-Origin':'*'
            }, 
            async:false,
            contentType: "application/json; charset=utf-8",
            data: JSON.stringify(insurDetailJson(ids)),
            dataType: "json",
            success: function (policyShow) {
                let policyList='';
                if(policyShow.resCode!='0' ){
                    twoError(policyShow)
                }else{
                    policyShow=policyShow.body;
                    policyList+=` <h2>尊享e生旗舰版</h2>
                                <p class="appellative"><i>${policyShow.productName}</i><br>保单号：<span >${policyShow.policyNo}</span></p>
                                <img src="../../lib/images/bd-tiao.png" class="bd-img">
                                <ul class="bd_name">
                                    <li><span class="color1">保费</span><em class="color2">${policyShow.price}元</em></li>
                                    <li><span class="color1">保额</span><em class="color2">${policyShow.amount}元</em></li>
                                    <li><span>投保日期</span><em>`+policyShow.insureTime+`</em></li>
                                    <li><span>承保日期</span><em>`+policyShow.insureData+`</em></li>
                                    <li><span>保单生效日期</span><em>`+policyShow.effectiveTime+`</em></li>
                                    <li><span>保单终止日期</span><em>`+policyShow.expiryTime+`</em></li>
                                    <li><span>缴费期</span><em>${policyShow.payment}</em></li>
                                    <li><span>保障期</span><em>${policyShow.expires}</em></li>
                                </ul>
                                <p class="bd_ren">投保人信息</p>
                                <ul class="bd_name">
                                    <li><span>姓名</span><em>${policyShow.applicantName}&nbsp;|&nbsp;${policyShow.applicantGender}</em></li>
                                    <li><span>证件类型</span><em>`+policyShow.holderCerType+`</em></li>
                                    <li><span>证件号码</span><em>`+policyShow.holderCerNo+`</em></li>
                                </ul>
                                <p class="bd_ren">被投保人信息</p>
                                <ul class="bd_name">
                                    <li><span>姓名</span><em>${policyShow.insurantName}&nbsp;|&nbsp;${policyShow.insurantGender}</em></li>
                                    <li><span>证件类型</span><em>`+policyShow.insurantCerType+`</em></li>
                                    <li><span>证件号码</span><em>`+policyShow.insurantCerNo+`</em></li>
                                </ul>`
                $('#policyDetail').html(policyList)
                }
            },
            error: function(error){  
                console.log(error,1);  
            }    
        }); 
    }
    
</script>
</body>
</html>